package com.headfirst.factory.abstractfactory.pizza;

import com.headfirst.factory.abstractfactory.ingredient.Veggies;
import com.headfirst.factory.abstractfactory.ingredient.defaultingredient.*;
import com.headfirst.factory.abstractfactory.nyingredient.Garlic;
import com.headfirst.factory.abstractfactory.nyingredient.Mushroom;
import com.headfirst.factory.abstractfactory.nyingredient.Onion;
import com.headfirst.factory.abstractfactory.nyingredient.RedPepper;

public class OriginalFlavorPizza extends Pizza{
    @Override
    public void prepare() {
        System.out.println("Preparing "+super.getName());
        super.setDough(new DefaultDough());
        super.setSauce(new DefaultSauce());
        super.setCheese(new DefaultCheese());
        super.setClam(new DefaultClam());
        super.setPepperoni(new DefaultPepperoni());
        super.setVeggies(new Veggies[]{new Garlic(),new Onion(),new Mushroom(),new RedPepper()});
    }
}
